package com.itheima.ThreadTest.synchronize;

public class DrawThread extends Thread{
    private Account cc;
    public DrawThread(Account cc, String name){
        super(name);
        this.cc = cc;
    }

    @Override
    public void run(){
        cc.drawMoney(1000);
    }
}
